package com.whl215.kit.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.viewbinding.ViewBinding

/**
 * author： happiness
 * date： 2021/5/4
 * description：快速构建一个adapter
 */
abstract class GrapeQuickAdapter<T> : GrapeBaseAdapter<T>() {
    override fun buildViewHolder(parent: ViewGroup, viewType: Int): GrapeViewHolder {
        return GrapeViewHolder(getViewBinding(parent))
    }

    abstract fun getViewBinding(parent: ViewGroup):ViewBinding
}